//调用接口配置文件
import { request } from 'config/request'
// 定义接口
export async function getEstateInfo(params) {
	//console.log(params)
	return request({
		url: 'admin/estate/detail',
		method: 'get',
		data: params,

	});
};
export async function submit(params) {
	return request({
		url: 'admin/estate/create',
		method: 'POST',
		data: params,
		headers: {
			"Content-type": "application/json",
		}
	});
};
export async function queryAllAddress(params) {
    return request({
        url: 'admin/address/queryAllAddress',
        method: 'GET',
        data: params,
    });
};
export async function labelQueryList(params) {
    return request({
        url: 'admin/label/queryList',
        method: 'POST',
        data: params,
        headers:{
            "Content-type":"application/json",
        }
    });
};
export async function update(params) {
    return request({
        url: 'admin/estate/update',
        method: 'POST',
        data: params,
        headers:{
            "Content-type":"application/json",
        }
    });
};
export async function queryItem(params) {
    return request({
        url: `admin/productDetailItem/queryItem`,
        method: 'POST',
        data: params,
        headers:{
            "Content-type":"application/json",
        }
    });
};